package hy.controller;



import hy.beans.Customer;
import hy.beans.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Ctr1 {
    @Autowired
    Person p;

    @Autowired
    Customer c;

    @Autowired
    Environment e;

    @GetMapping("/tmp")
    public String get(){
        return e.getProperty("person.birth");
    }
}
